<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <title>无标题文档</title>
    <style type="text/css">
        *{margin:0; padding:0; text-decoration:none;}
        .all{ background:#fff;width:95%; padding:5% 0; border-radius: 20px;
            margin: 5% auto;}
        ul{ list-style:none;}
        .content{ border:1px solid #ccc; margin:5% auto; width:80%;}
        .top{ border-bottom:1px solid #ccc; overflow:hidden;}
        .top h4{ float:left; margin:2%;}
        .top a{ float:right; margin:2% 2% 2% 0; color:#000; font-size:15px;}
        .top a:hover{ text-decoration:underline;}
        .top a i{ display:inline-block; background:url(<{$ipath}>wx/images/base_z2968da.png) no-repeat -1px -6244px; width:14px; height:15px; margin-left:5px;}
        .s_list{ overflow:hidden;}
        .s_list a{ color:#fff; float:right; background:#0C6; display:block; padding:1% 2%; border-radius:10%; margin:2%;}
        .s_table{ border:1px solid #ccc; margin:8% auto; width:90%; font-size:14px;}
        .s_table th{ background:#ddd; padding:1% 0;}
        .s_table td{ text-align:center; padding:1% 0;}
        .detail{ margin-right:30% !important;}
        .confirm{ margin:10px auto; border:1px solid #ccc; width:20%;height:150px; position:absolute; top:250px; left:819px; background:#fff; display:none;}
        .confirm i{ display:block; background:url(<{$ipath}>wx/images/base_z2968da.png) -2px -3440px no-repeat;width:10px; height:6px; left:55%; position:relative;}
        .confirm p{ margin:20px 20px;}
        .confirm a{ display:inline-block; width:25%; height:30px; background:#44b549; color:#fff; text-align:center; line-height:30px; border-radius:10%; margin-left:15%}

    </style>
    <script src="<{$ipath}>wx/js/jquery.min.js"></script>
</head>

<body>
<div class="all">
    <div class="content">
        <div class="top">
            <h4></h4>

        </div>
        <div class="s_list">
            <a href="?index.php&g=wx&m=weixin&a=add_kf" style="color: black;background: rgb(245, 236, 236);">+导入已有券创建</a>
            <a href="?index.php&g=wx&m=weixin&a=add_card">+新建优惠券</a>
            <table cellspacing="0" class="s_table" cellpadding="10">
                <tr>
                    <th>卡券类型</th>
                    <th>卡券名称</th>
                    <th>卡券有效期</th>
                    <th>
                        <select style="background: transparent none repeat scroll 0% 0%;border: medium none;font-weight: bold;">
                            <option style="background: white;">全部状态</option>
                            <option style="background: white;">审核中</option>
                            <option style="background: white;">未通过</option>
                            <option style="background: white;">待投放</option>
                            <option style="background: white;">已投放</option>
                            <option style="background: white;">违规下架</option>
                        </select>
                    </th>
                    <th>库存</th>
                    <th>操作</th>
                </tr>

                <{section name=value loop=$card_data}>
                <tr class="tr-list">
                    <td><{if $card_data[value]['card_type'] eq "GROUPON" }>团购券<{elseif $card_data[value]['card_type'] eq "CASH"}>代金券<{elseif $card_data[value]['card_type'] eq "DISCOUNT"}>折扣券
                        <{elseif $card_data[value]['card_type'] eq "GIFT"}>兑换券<{elseif $card_data[value]['card_type'] eq "GENERAL_COUPON"}>优惠券<{/if}></td>
                    <td><{$card_data[value]['title']}></td>
                    <td><{$card_data[value]['begin_timestamp']|date_format:'%Y-%m-%d'}>至<{$card_data[value]['end_timestampo']|date_format:'%Y-%m-%d'}></td>
                    <td><{if $card_data[value]['card_status'] eq "1"}>待投放<{/if}></td>
                    <td><{$card_data[value]['quantity']}></td>
                    <td>
                        <a href="?g=wx&m=weixin&a=del_card&id=<{$card_data[value]['id']}>" onclick="javascript:return confirm('你确定删除吗？')">删除</a>
                        <a href="?g=wx&m=weixin&a=detail_card&id=<{$card_data[value]['id']}>">详情</a>
                        <a>投放</a>
                    </td>
                </tr>
                <{/section}>
            </table>
        </div>
    </div>
</div>
</body>
</html>